package com.fastjrun.eladmin.itrms.mapstruct;

import com.fastjrun.eladmin.itrms.dto.ServerDTO;
import com.fastjrun.eladmin.itrms.dto.SoftDTO;
import com.fastjrun.eladmin.itrms.entity.RmsServer;
import com.fastjrun.eladmin.itrms.entity.RmsSoft;
import com.fastjrun.eladmin.itrms.vo.ServerVO;
import com.fastjrun.eladmin.itrms.vo.SoftVO;
import org.mapstruct.DecoratedWith;
import org.mapstruct.InjectionStrategy;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(componentModel = "spring", injectionStrategy = InjectionStrategy.CONSTRUCTOR)
@DecoratedWith(RmsSoftMapperDecorator.class)
public interface RmsSoftMapper {

    RmsSoftMapper INSTANCE = Mappers.getMapper(RmsSoftMapper.class);

    SoftVO toVO(RmsSoft entity);

    List <SoftVO> toVO(List<RmsSoft> entityList);

    RmsSoft toEntity(SoftDTO dto);

}
